package com.data.center.exception.info;

public enum CommonEnum implements BaseErrorInfoInterface {
    // 数据操作错误定义
    SUCCESS("200", "成功!"),
    BODY_NOT_MATCH("400","请求的数据格式不符!"),
    SIGNATURE_NOT_MATCH("401","请求的数字签名不匹配!"),
    NOT_FOUND("404", "未找到该资源!"),
    INTERNAL_SERVER_ERROR("500", "服务器内部错误!"),
    SERVER_BUSY("503","服务器正忙，请稍后再试!"),

    // 地区编码字典及服务
    CAN_NOT_FIND_IN_DICTIONARY("130001","字典映射查询失败"),
    CODE_SIZE_NOT_SIX("130002","行政编码非6位"),
    CODE_SIZE_NOT_EIGHT("130003","区域编码非8位"),
    DIVISION_CODE_WRONG("130004","区域编码无法解析"),
    FATHER_CODE_CAN_NOT_FIND("130005","区域编码未被大区包含"),

    ADMIN_DIVISION_CODE_EXIST("130006","区域编码已存在"),
    ADMIN_DIVISION_CODE_NOT_EXIST("130007","区域编码不存在"),
    FILE_NOT_FOUND("130008","未找到对应文件"),
    ADMIN_DIVISION_NAME_NOT_EXIST("130009","区域名称不存在"),
    ADMIN_DIVISION_NAME_CANT_GET("130010","无法准确查询，但存在模糊匹配结果，请调用模糊查询接口"),

    COUNTRY_NOT_EXIST("130018","国家不存在"),

    // 企业
    CATEGORY_NOT_EXIST("130011","企业性质不存在"),

    NAME_EMPTY("130012","企业名称为空"),
    NAME_WRONG("130013","企业名称不符合标准"),
    ABBREVIATION_WRONG("130014","企业简称不符合标准"),
    ORGANIZATION_EXIST("130015","企业已存在"),
    ORGANIZATION_RENAME_FALSE("130016","企业改名失败，违反唯一性约束"),
    ORGANIZATION_ADD_ABBREVIATION_FALSE("130017","企业添加简称失败，简称已经存在"),

    NOT_ALLOWED("130018", "不允许的操作"),
    DELETE_FALSE("130019", "删除失败"),

    POLITICAL_AFFILIATION_NOT_EXIST("130020", "政治面貌不存在"),
    RANK_NOT_EXIST("130021", "行政级别不存在"),
    TITLE_NOT_EXIST("130022", "专业技术职务不存在"),
    MAJOR_NOT_EXIST("130023", "所学专业不存在"),
    EDUCATION_NOT_EXIST("130024", "学历不存在"),
    DEGREE_NOT_EXIST("130025", "学位不存在"),
    DISCIPLINES_NOT_EXIST("130026", "学科不存在"),
    STATUS_NOT_EXIST("130027", "个人状态不存在"),
    AUTHENTICATION_NOT_EXIST("130028", "实名认证状态不存在"),

    AUTHENTICATION_PERSON_FAIL("130029", "公安部实名认证失败"),

    MERGE_FALSE("130030", "合并失败"),
    ;

    /** 错误码 */
    private String resultCode;

    /** 错误描述 */
    private String resultMsg;

    CommonEnum(String resultCode, String resultMsg) {
        this.resultCode = resultCode;
        this.resultMsg = resultMsg;
    }

    @Override
    public String getResultCode() {
        return resultCode;
    }

    @Override
    public String getResultMsg() {
        return resultMsg;
    }

}